(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/member/freight/freight" ], {
    "7a2b": function(e, i, t) {
        t.r(i);
        var n = t("9888"), r = t("dac1");
        for (var s in r) "default" !== s && function(e) {
            t.d(i, e, function() {
                return r[e];
            });
        }(s);
        t("c665");
        var o = t("f0c5"), c = Object(o.a)(r.default, n.b, n.c, !1, null, "50bea14e", null, !1, n.a, void 0);
        i.default = c.exports;
    },
    9888: function(e, i, t) {
        t.d(i, "b", function() {
            return r;
        }), t.d(i, "c", function() {
            return s;
        }), t.d(i, "a", function() {
            return n;
        });
        var n = {
            pickRegions: function() {
                return Promise.all([ t.e("common/vendor"), t.e("components/pick-regions/pick-regions") ]).then(t.bind(null, "dcf4"));
            }
        }, r = function() {
            this.$createElement, this._self._c;
        }, s = [];
    },
    b0ca: function(e, i, t) {
        function n(e, i) {
            var t = Object.keys(e);
            if (Object.getOwnPropertySymbols) {
                var n = Object.getOwnPropertySymbols(e);
                i && (n = n.filter(function(i) {
                    return Object.getOwnPropertyDescriptor(e, i).enumerable;
                })), t.push.apply(t, n);
            }
            return t;
        }
        function r(e) {
            for (var i = 1; i < arguments.length; i++) {
                var t = null != arguments[i] ? arguments[i] : {};
                i % 2 ? n(Object(t), !0).forEach(function(i) {
                    s(e, i, t[i]);
                }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : n(Object(t)).forEach(function(i) {
                    Object.defineProperty(e, i, Object.getOwnPropertyDescriptor(t, i));
                });
            }
            return e;
        }
        function s(e, i, t) {
            return i in e ? Object.defineProperty(e, i, {
                value: t,
                enumerable: !0,
                configurable: !0,
                writable: !0
            }) : e[i] = t, e;
        }
        Object.defineProperty(i, "__esModule", {
            value: !0
        }), i.default = void 0;
        var o = {
            components: {
                pickRegions: function() {
                    Promise.all([ t.e("common/vendor"), t.e("components/pick-regions/pick-regions") ]).then(function() {
                        return resolve(t("dcf4"));
                    }.bind(null, t)).catch(t.oe);
                }
            },
            data: function() {
                return {
                    payload: {
                        long: "",
                        width: "",
                        height: "",
                        mobile: "",
                        totalWeight: 1
                    },
                    type: 0,
                    expressList: [],
                    sendAddr: "",
                    receiptAddr: "",
                    vip: !1,
                    senders: {
                        province: "",
                        city: "",
                        area: ""
                    },
                    recipients: {
                        province: "",
                        city: "",
                        area: ""
                    },
                    remarkList: []
                };
            },
            computed: {
                disabled: function() {
                    return "" === this.senders.province || "" === this.senders.city || "" === this.recipients.province || "" === this.recipients.city || !this.info || "" === this.payload.totalWeight;
                },
                info: function() {
                    return "" === this.payload.long && "" === this.payload.width && "" === this.payload.height || "" !== this.payload.long && "" !== this.payload.width && "" !== this.payload.height;
                }
            },
            methods: {
                reduce: function() {
                    this.payload.totalWeight > 1 && this.payload.totalWeight--;
                },
                increase: function() {
                    this.payload.totalWeight++;
                },
                skipPage: function(e) {
                    e && this.$common.navigateTo(e);
                },
                query: function() {
                    var e = this;
                    console.log("methods-query", e), this.disabled || this.$api.choosecomApi(r(r({}, this.payload), {}, {
                        sender_province: this.senders.province,
                        sender_city: this.senders.city,
                        sender_area: this.senders.area,
                        sender_name: this.senders.name,
                        sender_mobile: this.senders.mobile,
                        recipients_province: this.recipients.province,
                        recipients_city: this.recipients.city,
                        recipients_name: this.recipients.name,
                        recipients_mobile: this.recipients.mobile,
                        recipients_area: this.recipients.area
                    }), function(i) {
                        "1" == i.code ? e.expressList = i.data || [] : e.$common.errorToShow(i.msg);
                    });
                },
                queryAdd: function() {
                    var e = this;
                    console.log("methods-query", e), this.disabled || this.$api.queryAddApi(r(r({}, this.payload), {}, {
                        sender_province: this.senders.province,
                        sender_city: this.senders.city,
                        sender_area: this.senders.area,
                        sender_name: this.senders.name,
                        sender_mobile: this.senders.mobile,
                        recipients_province: this.recipients.province,
                        recipients_city: this.recipients.city,
                        recipients_name: this.recipients.name,
                        recipients_mobile: this.recipients.mobile,
                        recipients_area: this.recipients.area
                    }), function(i) {
                        i.code, e.$common.errorToShow(i.msg);
                    });
                },
                changeSenders: function(e) {
                    this.senders.province = e[0].name, this.senders.city = e[1].name, this.senders.area = e[2].name;
                },
                changeRecipients: function(e) {
                    this.recipients.province = e[0].name, this.recipients.city = e[1].name, this.recipients.area = e[2].name;
                },
                jfruleList: function() {
                    var e = this;
                    this.$api.getJFruleApi({}, function(i) {
                        "1" == i.code ? e.remarkList = i.data || [] : e.$common.errorToShow(i.msg);
                    });
                }
            },
            onShow: function() {
                this.jfruleList(), this.sendAddr = this.$db.get("sendAddr") || "", this.receiptAddr = this.$db.get("receiptAddr") || "", 
                this.vip = 2 === this.$db.get("userInfo").grade;
            },
            onLoad: function(e) {
                var i = (e || {}).type, t = void 0 === i ? 1 : i;
                this.type = Number(t), this.type && wx.setNavigationBarTitle({
                    title: "查运费"
                }), this.$api.settravel("查运费");
            },
            onUnload: function() {
                this.$db.del("sendAddr"), this.$db.del("receiptAddr");
            }
        };
        i.default = o;
    },
    b3f3: function(e, i, t) {
        (function(e) {
            t("98af"), n(t("66fd"));
            var i = n(t("7a2b"));
            function n(e) {
                return e && e.__esModule ? e : {
                    default: e
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = t, e(i.default);
        }).call(this, t("543d").createPage);
    },
    bdc1: function(e, i, t) {},
    c665: function(e, i, t) {
        var n = t("bdc1");
        t.n(n).a;
    },
    dac1: function(e, i, t) {
        t.r(i);
        var n = t("b0ca"), r = t.n(n);
        for (var s in n) "default" !== s && function(e) {
            t.d(i, e, function() {
                return n[e];
            });
        }(s);
        i.default = r.a;
    }
}, [ [ "b3f3", "common/runtime", "common/vendor" ] ] ]);